<?php

namespace app\admin\controller;

use houdunwang\request\Request;
use houdunwang\route\Controller;
use system\model\Admin;
class Entry extends Common
{
    public function __construct ()
    {
        $this->auth();
    }
    public function index()
    {
        //echo 'admin';
        //加载模板
        return View::make();
    }
    public function changePassword(Admin $admin)
    {
        if(IS_POST)
        {
            return $admin->changePassword(Request::post());
        }
        return view();
    }
}